package com.springboot.es.elasticsearch.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

//import java.io.Serializable;

@Document(indexName = "car",type = "benz")
public class GoodsInfo{
    @Id
    private String id;

    public GoodsInfo(String id, String car_name, Long price) {
        this.id = id;
        this.car_name = car_name;
        this.price = price;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    private String car_name;
    private Long price;

    public GoodsInfo() {
    }


    public String getCar_name() {
        return car_name;
    }

    public void setCar_name(String car_name) {
        this.car_name = car_name;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }
}
